package cn.itcast.mapper;

import cn.itcast.pojo.horseman;
import cn.itcast.pojo.horsemanExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface horsemanMapper {
    int countByExample(horsemanExample example);

    int deleteByExample(horsemanExample example);

    int deleteByPrimaryKey(Integer horsemanId);

    int insert(horseman record);

    int insertSelective(horseman record);

    List<horseman> selectByExample(horsemanExample example);

    horseman selectByPrimaryKey(Integer horsemanId);

    int updateByExampleSelective(@Param("record") horseman record, @Param("example") horsemanExample example);

    int updateByExample(@Param("record") horseman record, @Param("example") horsemanExample example);

    int updateByPrimaryKeySelective(horseman record);

    int updateByPrimaryKey(horseman record);

    List<horseman> selectHorsemanphone(String userPhone);


    /**
     *
     * @Description:  查找全部骑手的经纬度
     *
     * @auther: 张松
     * @date: 16:45 2020/6/30
     * @param: []
     * @return: java.util.List<cn.itcast.pojo.horseman>
     *
     */
    List<horseman> selectAllHorsemanLatAndLon();

    /**
     *
     * @Description: 根据openID查找骑手
     *
     * @auther: 张松
     * @date: 11:10 2020/7/1
     * @param: []
     * @return: cn.itcast.pojo.horseman 返回一个骑手
     *
     */
    List<horseman> selectHorsemanOpenId(String openId);

    /**
     *
     * @Description: 根据骑手账号查找骑手
     *
     * @auther: 张松
     * @date: 20:25 2020/8/27
     * @param: [horsemanNumber]
     * @return: java.util.List<cn.itcast.pojo.horseman>
     *
     */
    List<horseman> selectHorsemanNumber(String horsemanNumber);

    List<horseman> selectHorsemanOrderNumber();

    List<horseman> ifIsOpen();
}